package request

type AddReservationReq struct {
	CustomerId int64   `json:"customer_id" form:"customer_id" binding:"required"`
	CleanerId  int64   `json:"cleaner_id" form:"cleaner_id" binding:"required"`
	ClassType  string  `json:"class_type" form:"class_type" binding:"required"`
	Address    string  `json:"address" form:"address" binding:"required"`
	Area       int64   `json:"area" form:"area" binding:"required"`
	StartTime  string  `json:"start_time" form:"start_time" binding:"required"`
	Duration   float32 `json:"duration" form:"duration" binding:"required"`
}

// 订单创建
type AddOrderReq struct {
	CustomerId    int64 `json:"customer_id" form:"customer_id" binding:"required"`
	CleanerId     int64 `json:"cleaner_id" form:"cleaner_id" binding:"required"`
	ReservationId int64 `json:"reservation_id" form:"reservation_id" binding:"required"`
}

// 拒单
type RejectOrderReq struct {
	OrderId   int64 `json:"order_id" form:"order_id" binding:"required"`
	CleanerId int64 `json:"cleaner_id" form:"cleaner_id" binding:"required"`
}

// 确认客户
type ConfirmCustomerReq struct {
	OrderId   int64  `json:"order_id" form:"order_id" binding:"required"`
	CleanerId int64  `json:"cleaner_id" form:"cleaner_id" binding:"required"`
	Mobile    string `json:"mobile" form:"mobile" binding:"required"`
}

// 结束服务
type EndOrderReq struct {
	OrderId   int64 `json:"order_id" form:"order_id" binding:"required"`
	CleanerId int64 `json:"cleaner_id" form:"cleaner_id" binding:"required"`
}

// 订单列表
type GetOrderListReq struct {
	CustomerId int64 `json:"customer_id" form:"customer_id" binding:"required"`
	Status     int64 `json:"status" form:"status"`
}

// 订单详情
type GetOrderDetailReq struct {
	OrderId int64 `json:"order_id" form:"order_id" binding:"required"`
}
